package com.kwedding.util;

import javax.validation.ValidationException;

public class RequestErrorBackException extends ValidationException {
	private static final long serialVersionUID = 1L;
	private int errorCode;
	private String msg;

	public RequestErrorBackException() {
		super();
	}

	public RequestErrorBackException(int errorCode, String msg) {
		super(BackJson.error(errorCode, msg));
		this.errorCode = errorCode;
		this.msg = msg;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
